export class Teacher {
  public id:number;
  public user_id:number;
  public class_id:number;
  public subject: string;
  public created_time: Date;
  public updated_time: Date;
  constructor({ id, user_id, class_id, subject, created_time, updated_time }: {id:number, user_id:number, class_id:number, subject:string, created_time: Date, updated_time: Date}) {
    this.id = id;
    this.class_id = class_id;
    this.user_id = user_id;
    this.subject = subject;
    this.created_time = created_time;
    this.updated_time = updated_time;
  }
  get getId() {
    return this.id;
  }
  set setId(id: number) {
    this.id = id;
  }
  get getClassId() {
    return this.class_id;
  }
  set setClassId(class_id: number) {
    this.class_id = class_id;
  }
  get getUserId() {
    return this.user_id;
  }
  set setUserId(user_id: number) {
    this.user_id = user_id;
  }
  get getSubject() {
    return this.subject;
  }
  set setSubject(subject: string) {
    this.subject = subject;
  }
  get getCreated_time() {
    return this.created_time;
  }
  set setCreated_time(created_time: Date) {
    this.created_time = created_time;
  }
  get getUpdated_time() {
    return this.updated_time;
  }
  set setUpdated_time(updated_time: Date) {
    this.updated_time = updated_time;
  }
}
